package com.triptogether.utils.db.models;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = User.TABLE_NAME)
public class User {

	public static final String TABLE_NAME = "Users";
	public static final String FACEBOOK_ID_COLUMN = "facebookId";

	@DatabaseField(generatedId = true)
	private long id;
	@DatabaseField(columnName = FACEBOOK_ID_COLUMN)
	private String facebookId;
	@DatabaseField
	private String userName;
	@DatabaseField
	private String pictureUrl;
	@DatabaseField
	private boolean logedIn;

	public User() {}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getFacebookId() {
		return facebookId;
	}

	public void setFacebookId(String facebookId) {
		this.facebookId = facebookId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPictureUrl() {
		return pictureUrl;
	}

	public void setPictureUrl(String pictureUrl) {
		this.pictureUrl = pictureUrl;
	}
}
